//自定义http请求
import http from './http.js';
const get = http.get;
const post = http.post;
let upush = 'api-upush/';      //登陆
let order = 'api-order/';      //登陆

let api = {
    dishList: p => post('api-order/manage/BusinessListings/getShopList', p),    //菜品列表
    sendCodeSms: (url, p, config) => post(upush+'sms/sendCodeSms' + url, p, config),  //发送验证码
    findUser: p => get(order+'app/auth/findUserByMobile', p),                   //查询用户
    login: (url, p, config) => post('api-auth/oauth/token' + url, p, config)    //登陆
};
export default api;